﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.WS.UserControls;
using GCELibrary.Current;
using System.Transactions;
using ZF.BLL;
using Newtonsoft.Json;
using ZF.BLL.Admin;
using ZF.WS.Admin.service;
using ZF.BLL.ServiceModel;
namespace ZF.WS.Admin
{

    public partial class logManage : log 
    {
    

        [PageArgument(Key = "id", CanNull = false)]
        public int  Id { get; set; }
        public Model.Sys_Log Log { get; set; }
   

        protected void Page_Load(object sender, EventArgs e)
        {
    
            if (!IsPostBack)
            {
                
                
                    Edit();
            }
        }
        public void InitControls()
        {

     
     
        }

 

        public void Edit()
        {
            using (var dc = BLL.SiteInfo.CreateDBDataContext())
            {
                var log = dc.Sys_Log.FirstOrDefault(p => p.LogId == Id);
                if (log == null)
                    throw WarnFactory.CreateWarn(WarnCode.ReocrdNoFind);
                InitControls();
                this.Log = log;
            }
        }
        
        public void EditSubmit(object sender, EventArgs e)
        {
 
        }

    
    }
 
}
